<template>
	<view>
		<!-- #ifdef MP-WEIXIN -->
		<official-account v-if="showOffAt"></official-account>
		<view class="cf-ad" v-if="type==0">
			<ad unit-id="adunit-da9ca613908f616c" ad-intervals="30"></ad>
		</view>
		<view class="cf-ad" v-if="type==1">
			<ad unit-id="adunit-857f5c9dbc28f928" ad-type="grid" grid-opacity="0.8" grid-count="5" ad-theme="white"></ad>
		</view>
		<view class="cf-ad" v-if="type==2">
			<ad unit-id="adunit-8f6c4b5b2cfbf8de" ad-type="video" ad-theme="white"></ad>
		</view>
		<!-- #endif -->
	</view>
</template>

<script>
	export default {
			props: {
				type: {
					type: [Number, String],
					default: 1
				},
				showOffAt: {
					type: [Boolean, String],
					default: false
				},
				
			},
			computed: {
			},
	
			watch: {
	
			},
			data() {
				return {
	
				};
			},
	
			methods: {
			}
		}
	
</script>

<style>
</style>
